package de.lns.entities.effect;
/**
 * 
 * @author Jascha
 *
 */

public abstract class InstantEffect extends Effect {
	
	/**
	 * 
	 * @param entity The entity this effect should be applied on.
	 */
	public InstantEffect(Effectable entity) {
		super(entity);
	}
	protected abstract void onUpdate();

	@Override
	/**
	 * Removes the Effect on first update since it should be instant anyways.
	 */
	public void update() {
		onUpdate();
		entity.removeEffect(this);
	}

}
